package com.vcg.comment.model.query;

import java.io.Serializable;
import com.vcg.common.base.BaseExample;
import java.util.ArrayList;
import java.util.List;

public class PrivateLetterExample extends BaseExample {

	private static final long serialVersionUID = 1232003746144972895L;

    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PrivateLetterExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

protected abstract static class GeneratedCriteria implements Serializable {

	private static final long serialVersionUID = 5039046040410613964L;

        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDialogIdIsNull() {
            addCriterion("dialog_id is null");
            return (Criteria) this;
        }

        public Criteria andDialogIdIsNotNull() {
            addCriterion("dialog_id is not null");
            return (Criteria) this;
        }

        public Criteria andDialogIdEqualTo(String value) {
            addCriterion("dialog_id =", value, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdNotEqualTo(String value) {
            addCriterion("dialog_id <>", value, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdGreaterThan(String value) {
            addCriterion("dialog_id >", value, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdGreaterThanOrEqualTo(String value) {
            addCriterion("dialog_id >=", value, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdLessThan(String value) {
            addCriterion("dialog_id <", value, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdLessThanOrEqualTo(String value) {
            addCriterion("dialog_id <=", value, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdLike(String value) {
            addCriterion("dialog_id like", value, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdNotLike(String value) {
            addCriterion("dialog_id not like", value, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdIn(List<String> values) {
            addCriterion("dialog_id in", values, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdNotIn(List<String> values) {
            addCriterion("dialog_id not in", values, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdBetween(String value1, String value2) {
            addCriterion("dialog_id between", value1, value2, "dialogId");
            return (Criteria) this;
        }

        public Criteria andDialogIdNotBetween(String value1, String value2) {
            addCriterion("dialog_id not between", value1, value2, "dialogId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdIsNull() {
            addCriterion("sender_user_id is null");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdIsNotNull() {
            addCriterion("sender_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdEqualTo(String value) {
            addCriterion("sender_user_id =", value, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdNotEqualTo(String value) {
            addCriterion("sender_user_id <>", value, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdGreaterThan(String value) {
            addCriterion("sender_user_id >", value, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("sender_user_id >=", value, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdLessThan(String value) {
            addCriterion("sender_user_id <", value, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdLessThanOrEqualTo(String value) {
            addCriterion("sender_user_id <=", value, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdLike(String value) {
            addCriterion("sender_user_id like", value, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdNotLike(String value) {
            addCriterion("sender_user_id not like", value, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdIn(List<String> values) {
            addCriterion("sender_user_id in", values, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdNotIn(List<String> values) {
            addCriterion("sender_user_id not in", values, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdBetween(String value1, String value2) {
            addCriterion("sender_user_id between", value1, value2, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andSenderUserIdNotBetween(String value1, String value2) {
            addCriterion("sender_user_id not between", value1, value2, "senderUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdIsNull() {
            addCriterion("recipient_user_id is null");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdIsNotNull() {
            addCriterion("recipient_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdEqualTo(String value) {
            addCriterion("recipient_user_id =", value, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdNotEqualTo(String value) {
            addCriterion("recipient_user_id <>", value, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdGreaterThan(String value) {
            addCriterion("recipient_user_id >", value, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("recipient_user_id >=", value, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdLessThan(String value) {
            addCriterion("recipient_user_id <", value, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdLessThanOrEqualTo(String value) {
            addCriterion("recipient_user_id <=", value, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdLike(String value) {
            addCriterion("recipient_user_id like", value, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdNotLike(String value) {
            addCriterion("recipient_user_id not like", value, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdIn(List<String> values) {
            addCriterion("recipient_user_id in", values, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdNotIn(List<String> values) {
            addCriterion("recipient_user_id not in", values, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdBetween(String value1, String value2) {
            addCriterion("recipient_user_id between", value1, value2, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andRecipientUserIdNotBetween(String value1, String value2) {
            addCriterion("recipient_user_id not between", value1, value2, "recipientUserId");
            return (Criteria) this;
        }

        public Criteria andCommontIdIsNull() {
            addCriterion("commont_id is null");
            return (Criteria) this;
        }

        public Criteria andCommontIdIsNotNull() {
            addCriterion("commont_id is not null");
            return (Criteria) this;
        }

        public Criteria andCommontIdEqualTo(String value) {
            addCriterion("commont_id =", value, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdNotEqualTo(String value) {
            addCriterion("commont_id <>", value, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdGreaterThan(String value) {
            addCriterion("commont_id >", value, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdGreaterThanOrEqualTo(String value) {
            addCriterion("commont_id >=", value, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdLessThan(String value) {
            addCriterion("commont_id <", value, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdLessThanOrEqualTo(String value) {
            addCriterion("commont_id <=", value, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdLike(String value) {
            addCriterion("commont_id like", value, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdNotLike(String value) {
            addCriterion("commont_id not like", value, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdIn(List<String> values) {
            addCriterion("commont_id in", values, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdNotIn(List<String> values) {
            addCriterion("commont_id not in", values, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdBetween(String value1, String value2) {
            addCriterion("commont_id between", value1, value2, "commontId");
            return (Criteria) this;
        }

        public Criteria andCommontIdNotBetween(String value1, String value2) {
            addCriterion("commont_id not between", value1, value2, "commontId");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Long value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Long value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Long value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Long value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Long value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Long value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Long> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Long> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Long value1, Long value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Long value1, Long value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andIsReadIsNull() {
            addCriterion("is_read is null");
            return (Criteria) this;
        }

        public Criteria andIsReadIsNotNull() {
            addCriterion("is_read is not null");
            return (Criteria) this;
        }

        public Criteria andIsReadEqualTo(Integer value) {
            addCriterion("is_read =", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotEqualTo(Integer value) {
            addCriterion("is_read <>", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadGreaterThan(Integer value) {
            addCriterion("is_read >", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_read >=", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLessThan(Integer value) {
            addCriterion("is_read <", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadLessThanOrEqualTo(Integer value) {
            addCriterion("is_read <=", value, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadIn(List<Integer> values) {
            addCriterion("is_read in", values, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotIn(List<Integer> values) {
            addCriterion("is_read not in", values, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadBetween(Integer value1, Integer value2) {
            addCriterion("is_read between", value1, value2, "isRead");
            return (Criteria) this;
        }

        public Criteria andIsReadNotBetween(Integer value1, Integer value2) {
            addCriterion("is_read not between", value1, value2, "isRead");
            return (Criteria) this;
        }

        public Criteria andSortIsNull() {
            addCriterion("sort is null");
            return (Criteria) this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion("sort is not null");
            return (Criteria) this;
        }

        public Criteria andSortEqualTo(Long value) {
            addCriterion("sort =", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotEqualTo(Long value) {
            addCriterion("sort <>", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThan(Long value) {
            addCriterion("sort >", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThanOrEqualTo(Long value) {
            addCriterion("sort >=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThan(Long value) {
            addCriterion("sort <", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThanOrEqualTo(Long value) {
            addCriterion("sort <=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortIn(List<Long> values) {
            addCriterion("sort in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotIn(List<Long> values) {
            addCriterion("sort not in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortBetween(Long value1, Long value2) {
            addCriterion("sort between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotBetween(Long value1, Long value2) {
            addCriterion("sort not between", value1, value2, "sort");
            return (Criteria) this;
        }
    }

public static class Criteria extends GeneratedCriteria implements Serializable {

	private static final long serialVersionUID = 11831664855654417L;


        protected Criteria() {
            super();
        }
    }

public static class Criterion implements Serializable {

	private static final long serialVersionUID = 1387832164156522970L;

        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
